package com.yq.cp.service.permission;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yq.cp.entity.common.PageVo;
import com.yq.cp.entity.permission.Role;
import com.yq.cp.entity.permission.dto.RoleDto;
import com.yq.cp.entity.permission.vo.RoleVo;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author zh
 * @since 2022-09-21
 */
public interface RoleService extends IService<Role> {

    void add(RoleVo vo);
    void update(RoleVo role);
    void delete(RoleVo role);
    IPage<Role> page(PageVo pageVo);

    /** 查询角色并统计用户数量 */
    IPage<RoleDto> pageAndUserNumber(RoleVo pageVo);
}
